//
//  FadeStringView.h
//  渐变的文字
//
//  Created by 周少文 on 15/10/26.
//  Copyright © 2015年 ZheJiangWangHang. All rights reserved.
//

/**
  文字颜色渐变
 FadeStringView *fadeStringView = [[FadeStringView alloc] initWithFrame:CGRectMake(0, 0, 300, 40)];
 fadeStringView.text = @"浙江万航运动世界";
 fadeStringView.foreColor = [UIColor whiteColor];
 fadeStringView.backColor = [UIColor redColor];
 fadeStringView.font = [UIFont systemFontOfSize:30];
 fadeStringView.alignment = NSTextAlignmentCenter;
 fadeStringView.center = self.view.center;
 [self.view addSubview:fadeStringView];
 
 [fadeStringView fadeRightWithDuration:2];
 
 
 
 */


#import <UIKit/UIKit.h>

@interface FadeStringView : UIView

@property (nonatomic,strong) NSString *text;
@property (nonatomic,assign) NSTextAlignment alignment;
@property (nonatomic,strong) UIColor *backColor;
@property (nonatomic,strong) UIColor *foreColor;
@property (nonatomic,strong) UIFont *font;

- (void)fadeRightWithDuration:(NSTimeInterval)duration;


@end
